package com.Shop.Center.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data
public class Items {
    @TableId("id")
    private Long id;
    private String name;
    private String info;    //信息、介绍
    private Double originalPrice;
    private Double sellingPrice;
    private Integer amount; //库存
    private char sellStatus;    //上架状态
    private String imageUrl;
    private String type;    //分类
    private String tag; //标签

    public Items(){

    }

    public Items(String name, String info, Double originalPrice, Double sellingPrice, Integer amount, char sellStatus, String imageUrl, String type, String tag) {
        this.name = name;
        this.info = info;
        this.originalPrice = originalPrice;
        this.sellingPrice = sellingPrice;
        this.amount = amount;
        this.sellStatus = sellStatus;
        this.imageUrl = imageUrl;
        this.type = type;
        this.tag = tag;
    }

    public String getType(){
        return type;
    }

    public String getInfo() {
        return info;
    }

    public void setInfo(String info) {
        this.info = info;
    }

    public String getTag() {
        return tag;
    }

    public void setTag(String tag) {
        this.tag = tag;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Double getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(Double originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Double getSellingPrice() {
        return sellingPrice;
    }

    public void setSellingPrice(Double sellingPrice) {
        this.sellingPrice = sellingPrice;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public char getSellStatus() {
        return sellStatus;
    }

    public void setSellStatus(char sellStatus) {
        this.sellStatus = sellStatus;
    }

    public String getImageUrl() {
        return imageUrl;
    }

    public void setImageUrl(String imageUrl) {
        this.imageUrl = imageUrl;
    }

    public void setType(String type) {
        this.type = type;
    }

}
